import { defineStore } from "pinia";
import getsearch from "../../service/modules/search"
const usesearch=defineStore("search",{
    state:()=>({
        searchdata:{}
    }),
    
    getters:{

    },

    actions:{
        async fetchsearch(){
            const res=await getsearch()
            this.searchdata=res.data
            console.log(res.data);
        }
    }

})

export default usesearch